package com.cx.bank.manager;

import com.cx.bank.model.MoneyBean;
import com.cx.bank.model.UserBean;
import com.cx.bank.util.AccountOverDrawnException;
import com.cx.bank.util.InvalidDepositException;

import java.io.IOException;

/**
 * @author jxau_scf
 * @date 2021/7/13 - 20:34
 */
public interface IManager {

    //查询方法
    public Double inquiry();

    //取款方法（实现“余额不足”逻辑判断）
    public void withdrawals(Double money) throws InvalidDepositException;

    //存款方法（实现“存款不能为负”逻辑判断）
    public void deposit(double money) throws AccountOverDrawnException;

    //退出系统方法
    public void exitSystem(UserBean userBean) throws IOException;
}
